package com.example.myapplication;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

class StudentViewHoder extends RecyclerView.ViewHolder {
    //ViewHolder放组件
     ImageView iv_head;
     TextView nameView;
     TextView ageView;

    public StudentViewHoder(@NonNull View itemView) {
        super(itemView);
        iv_head=itemView.findViewById(R.id.iv_head);
        nameView=itemView.findViewById(R.id.tv_name);
        ageView=itemView.findViewById(R.id.tv_age);
    }
}
